package com.yaoxuguang.concurrence.synchronizedpackage.deadLock;

import java.util.concurrent.TimeUnit;

/**
 * @author yaoxuguang
 * @Title: yao-interview
 * @Package com.yaoxuguang.concurrence.synchronizedpackage.deadLock
 * @Description: 测试多线程死锁
 * @date 2018年12月18日15:11
 */
public class Run {
    public static void main(String[] args) throws InterruptedException {
        DeadLockDemo d1 = new DeadLockDemo();
        d1.setFlag("a");
        Thread t1 = new Thread(d1);
        t1.start();
        Thread.sleep(100);

        d1.setFlag("b");
        Thread t2 = new Thread(d1);
        t2.start();

    }
}
